package modler

import "gorm.io/gorm"

type User struct { //用户表
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}
type Role struct { //角色表
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}
type Node struct { //权限表
	gorm.Model
	NodeName string `gorm:"type:varchar(50)"`
}
type UserRole struct { //用户和角色
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type RoleNode struct { //角色和权限
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Shop struct {
	gorm.Model
	ShopCode string `gorm:"type:varchar(50)"` //商品编号
	ShopName string `gorm:"type:varchar(50)"` //商品名称
	ShopNum  string `gorm:"type:varchar(50)"` //商品数量
	ShopType string `gorm:"type:varchar(50)"` //商品类型
}
type ShopOrder struct {
	gorm.Model
	ShopOrderCode   string `gorm:"type:varchar(50)"` //订单编号
	ShopOrderName   string `gorm:"type:varchar(50)"` //客户名称
	ShopOrderPrince string `gorm:"type:varchar(50)"` //订单价格
	ShopOrderNO     string `gorm:"type:varchar(50)"` //支付方式
	Sid             int    `gorm:"type:int"`
}
type ShopOrderList struct {
	OrderId         int    `gorm:"type:int"`
	ShopCode        string `gorm:"type:varchar(50)"` //商品编号
	ShopName        string `gorm:"type:varchar(50)"` //商品名称
	ShopNum         string `gorm:"type:varchar(50)"` //商品数量
	ShopType        string `gorm:"type:varchar(50)"` //商品类型
	ShopOrderCode   string `gorm:"type:varchar(50)"` //订单编号
	ShopOrderName   string `gorm:"type:varchar(50)"` //客户名称
	ShopOrderPrince string `gorm:"type:varchar(50)"` //订单价格
	ShopOrderNO     string `gorm:"type:varchar(50)"` //支付方式
}
